<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8"/>
        <title>jq编写的选项卡</title>
        <script src="js/jquery-1.12.4.min.js"></script>
        <style>
            body {
                height:3000px;
            }
        </style>
        <script>
            $(document).click( function () {
                alert( $(window).scrollTop() );
            } )
        </script>
    </head>
    <body>
        <div id="wrap">1111</div>
        <span>span</span>
    </body>
</html>













































